var cc__importDefault = __importDefault;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.GameState = undefined;
var i;
var $1$zqcc_OverallSystem = require("zqcc_OverallSystem");
var r = cc__importDefault($1$zqcc_OverallSystem);
var $1$IConsleNamespace = require("IConsleNamespace");
var a = cc__importDefault($1$IConsleNamespace);
(function (t) {
  t[t.start = 0] = "start";
  t[t.play = 1] = "play";
  t[t.wait = 2] = "wait";
  t[t.over = 3] = "over";
})(i = exports.GameState || (exports.GameState = {}));
var def_gameState = function () {
  function _ctor() {
    this.stateName = ["开始", "运行", "等待", "结束"];
    this.m_State = i.start;
  }
  Object.defineProperty(_ctor.prototype, "state", {
    get() {
      return this.m_State;
    },
    enumerable: false,
    configurable: true
  });
  _ctor.prototype.check = function () {
    const argsArray = Array.from(arguments);  // 将arguments转换为数组
    const isIncluded = argsArray.includes(this.m_State);  // 检查m_State是否在数组中
    return isIncluded;  // 返回结果
  };
  _ctor.prototype.shift = function (t) {
    this.m_State = t;
    r.default.emit("Game-state" + t);
    a.default.log_red_bg_yellow("游戏状态---", this.stateName[this.m_State]);
  };
  return _ctor;
}();
exports.default = def_gameState;